
export function INDUSTRIAL_COMMERCIAL_ENTERPRISES_CONTRACTS_SEAL(data) {
  const {name,bank,account,tel,adress}=data
  const enterpriseName = name||'某某某科技有限公司'
  const text1 = bank||''
  const text2 =account|| ''
  const text3 = tel||''
  const text4 = adress||''

  const RADIUS = 29 // 半径
  const CIRCLE_WIDTH = 1.5 // 圆环宽度
  const CIRCLE_PADDING = 1 // 圆环内边距
  const ENTERPRISE_NAME_FONT_SIZE = 8 // 企业名称大小
  const TEXT_FONT_SIZE = 5 // 横排文本大小

  const config ={
    dpi: 300,

    height: RADIUS * 2,
    width: RADIUS * 2,
    color: 'red',
    charSpace: 0, // 文字间隔
    fontFamily: 'SimSun',
    centerX: RADIUS,
    centerY: RADIUS,
    elements: [
      {
        type: 'CIRCLE',
        radius: RADIUS - CIRCLE_WIDTH / 2,
        lineWidth: CIRCLE_WIDTH
      },
      {
        type: 'CIRCULAR_TEXT',
        text: enterpriseName,
        radius: RADIUS - CIRCLE_WIDTH - CIRCLE_PADDING - ENTERPRISE_NAME_FONT_SIZE / 2,
        fontSize: ENTERPRISE_NAME_FONT_SIZE,
        direction: 1,
        maxAngle: 170
      },
      {
        type: 'TEXT',
        text: '合同专用章',
        fontSize: 6,
        centerX: RADIUS,
        centerY: RADIUS - 6 - 1
      },
      {
        type: 'TEXT',
        text: text1,
        fontSize: TEXT_FONT_SIZE,
        centerX: RADIUS,
        centerY: RADIUS + 1,
        maxWidth: 40
      },
      {
        type: 'TEXT',
        text: text2,
        fontSize: TEXT_FONT_SIZE,
        centerX: RADIUS,
        centerY: RADIUS + TEXT_FONT_SIZE + 1,
        maxWidth: 40
      },
      {
        type: 'TEXT',
        text: text3,
        fontSize: TEXT_FONT_SIZE,
        centerX: RADIUS,
        centerY: RADIUS + TEXT_FONT_SIZE * 2 + 1,
        maxWidth: 40
      },
      {
        type: 'TEXT',
        text: text4,
        fontSize: TEXT_FONT_SIZE,
        centerX: RADIUS,
        centerY: RADIUS + TEXT_FONT_SIZE * 3 + 1,
        maxWidth: 40
      }
    ]
  }
return config
}
